package com.one.rope.mvp.web.business.service;

import com.one.rope.mvp.web.business.entity.MemberPushTaskLog;
import com.baomidou.mybatisplus.extension.service.IService;
import com.one.rope.mvp.web.common.dto.admin.push.AdminMemberPushVO;
import com.one.rope.mvp.web.common.dto.admin.push.AdminSaveMemberPushDTO;
import com.one.rope.mvp.web.common.dto.admin.push.AdminMemberPushListDTO;
import com.one.rope.mvp.basecore.bean.ResponseObject;
import java.util.List;

/**
 * <p>
 * 推送任务表 服务类
 * </p>
 *
 * @author wesley
 * @since 2020-02-20
 */
public interface IMemberPushTaskLogService extends IService<MemberPushTaskLog> {

  /**
   * 查询会员推送任务列表
   */
  ResponseObject pushTaskList(AdminMemberPushListDTO requestDTO);

  /**
   * 新增推送任务
   */
  ResponseObject savePushTask(AdminSaveMemberPushDTO requestDTO);

  /**
   * 推送任务
   */
  ResponseObject<AdminMemberPushVO> executePush(Long id) throws Exception;

  /**
   * 查询推送页面列表
   */
  ResponseObject pushPageList();

  /**
   * 查询目标推送列表
   * @return
   */
  List<MemberPushTaskLog> selectMemberPushList(Long targetId);
}
